package cn.tedu.boot.ers.pojo.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@ApiModel("管理员登录DTO")
public class AdminLoginDTO implements Serializable {
    @NotNull(message = "管理员用户名不能为空")
    @ApiModelProperty(value = "管理员名字", name = "name", example = "Admin001")
    private String name;
    @NotNull(message = "管理员密码不能为空")
    @ApiModelProperty(value = "管理员密码", name = "password", example = "168168")
    private String password;
    @NotNull(message = "管理员电话不能为空")
    @ApiModelProperty(value = "管理员电话", name = "tel", example = "18581168823")
    private String tel;
}
